package com.itjianren.employeemanagementsystem.mapper;

import com.itjianren.employeemanagementsystem.dto.EmployeeQueryDTO;
import com.itjianren.employeemanagementsystem.model.Employee;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

@Mapper
public interface EmployeeMapper {
    List<Employee> findAll();
    Employee findById(Integer id);
    void insert(Employee employee);
    void update(Employee employee);
    void delete(Integer id);
    List<Employee> findByCondition(EmployeeQueryDTO queryDTO);
    int countByCondition(EmployeeQueryDTO queryDTO);
}
